<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">查询时间:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-5">
                <input type="text" class="form-control datetimepicker" name="starttime" value="{:date('Y-m-d H:i:s')}" placeholder="录单时间" id="starttime" data-index="2">
            </div>
            <div class="col-xs-12 col-sm-1">
                至
            </div>

            <div class="col-xs-12 col-sm-4">
                <input type="text" class="form-control datetimepicker" name="endtime" value="{:date('Y-m-d H:i:s')}" placeholder="录单时间" id="endtime" data-index="2">
            </div>
        </div>
    </div>
    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
        <label for="c-storehouse_id" class="control-label col-xs-4">分类</label>
        <div class="col-xs-8">
            <select id="c-pid" data-rule="required" class="form-control " name="cate_id">
                {foreach name="parentList" item="vo"}
                <option   value="{$key}">{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
        <label for="c-storehouse_id" class="control-label col-xs-4">仓库名称</label>
        <div class="col-xs-8">
            <input id="c-storehouse_id"  data-source="data/storehouse/index" data-field="name" class="form-control selectpage" name="storehouse_id" type="text" value="">
        </div>
    </div>
    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
        <label for="c-storehouse_id" class="control-label col-xs-4">经手人</label>
        <div class="col-xs-8">
            <input id="c-admin_id"  data-source="auth/admin/index" data-field="nickname" class="form-control selectpage" name="storehouse_id" type="text" value="">
        </div>
    </div>
    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
        <label for="c-goods_id" class="control-label col-xs-4">商品名称</label>
        <div class="col-xs-8">
            <input id="c-goods_id"  data-source="goods/goods/index" data-field="title" class="form-control selectpage" name="goods_id" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <!--            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
        </div>
    </div>
</form>
